﻿namespace SuperMarieApi.App.Controllers.Framework.Common
{
    using System;

    public class DateUtil
    {
        public static string GetDayName(DayOfWeek week)
        {
            string weekDay = "";
            switch (week)
            {
                case DayOfWeek.Monday:
                    weekDay = "星期一";
                    break;
                case DayOfWeek.Friday:
                    weekDay = "星期五";
                    break;
                case DayOfWeek.Saturday:
                    weekDay = "星期六";
                    break;
                case DayOfWeek.Sunday:
                    weekDay = "星期日";
                    break;
                case DayOfWeek.Thursday:
                    weekDay = "星期四";
                    break;
                case DayOfWeek.Tuesday:
                    weekDay = "星期二";
                    break;
                case DayOfWeek.Wednesday:
                    weekDay = "星期三";
                    break;
            }

            return weekDay;
        }
    }
}
